package o;

import android.database.Cursor;
import com.huawei.appgallery.updatemanager.impl.badge.dao.BadgeAppIcon;
import java.util.List;

public class dak {
    private static final Object ˋ = new Object();
    private static dak ˎ = null;
    private cfu ˏ = euc.ˊ().ʽ("specialability");

    public static dak ˏ() {
        dak o_dak;
        synchronized (ˋ) {
            if (ˎ == null) {
                ˎ = new dak();
            }
            o_dak = ˎ;
        }
        return o_dak;
    }

    private dak() {
    }

    public int ˋ() {
        List ˋ = this.ˏ.ˋ(BadgeAppIcon.class, null);
        if (ˋ.isEmpty()) {
            return 0;
        }
        return ((BadgeAppIcon) ˋ.get(0)).ˎ();
    }

    public void ˎ(int i) {
        cfr badgeAppIcon = new BadgeAppIcon();
        badgeAppIcon.ˊ(i);
        this.ˏ.ˎ(badgeAppIcon);
    }

    public void ˎ() {
        this.ˏ.ˋ(null, null);
    }

    public Cursor ˏ(String[] strArr, String str, String[] strArr2, String str2) {
        try {
            return euc.ˊ().ˏ("specialability", strArr, str, strArr2, str2);
        } catch (Exception e) {
            czi.ˎ.ˊ("BadgeAppIconDAO", "queryUpdateNum(String[] projection, String selection, String[] selectionArgs, String sortOrder) " + e.toString());
            return null;
        }
    }
}
